﻿using Abp.Domain.Entities.Auditing;
using Camc.Quality.Bop;
using JetBrains.Annotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Camc.Quality.ProcessRoute
{
    public class ProcessTask : FullAuditedEntity<Guid>
    {
        public override Guid Id { get; set; }
        /// <summary>
        /// 序号
        /// </summary>
        public int Sort { get; set; }
        /// <summary>
        /// 型号
        /// </summary>
        public string Model { get; set; }
        /// <summary>
        /// 发次
        /// </summary>
        public string LotNo { get; set; }
        /// <summary>
        /// 型号名称
        /// </summary>
        public string ModelName { get; set; }
        /// <summary>
        /// 图号
        /// </summary>
        public string DrawingNo { get; set; }
        /// <summary>
        /// 阶段标识
        /// </summary>
        public string StageSign { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public ProcessStatus ProcessStatus { get; set; }

        /// <summary>
        /// 版本
        /// </summary>
        public string Edition { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 创建日期
        /// </summary>
        public DateTime? ReleaseTime { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        public IsUsed IsUsed { get; set; }

        /// <summary>
        /// 前端所需坐标
        /// </summary>
        public string Loc { get; set; }

        /// <summary>
        /// 节点名称
        /// </summary>
        public string NodeText { get; set; }

        /// <summary>
        /// 详情
        /// </summary>
        public string Details { get; set; }

        /// <summary>
        /// 形状
        /// </summary>
        public string Figure { get; set; }

        /// <summary>
        /// 字体和边框颜色
        /// </summary>
        public string Color { get; set; }
        /// <summary>
        /// 大小
        /// </summary>
        public int Size { get; set; }

        /// <summary>
        /// 父节点Id
        /// </summary>
        public Guid PPtr { get; set; }
        /// <summary>    
        /// 层级
        /// </summary>
        [CanBeNull]
        public int NodeLevel { get; set; }
        /// <summary>
        /// 是否叶节点
        /// </summary>
        public int IsLeaf { get; set; }
        /// <summary>
        /// 工时
        /// </summary>
        public int WorkingHour { get; set; }

        /// <summary>
        /// 工时计算方式 0工序 1 工步
        /// </summary>
        public string WorkingHourStatus { get; set; }
    }
}
